<template>
<div class="header">
  <div class="header-left">
  <span class="iconfont">&#xe624;</span>
  </div>
  <div class="header-input">
  <span class="iconfont cion1">&#xe632;</span>
  输入景点名称
  </div>
  <router-link to='./city'>
  <div class="header-right">
  {{this.city}}<span class="iconfont cion2">&#xe629;</span>
  </div>
  </router-link>
</div>
</template>
<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>
<style lang="stylus" scoped>
// @import '../../../assets/styles/varibles.styl'
@import '~@/assets/styles/varibles.styl'
// @import '~@2/varibles.styl'
.header {
text-align:center;
 display: flex;
 background:$bgColor;
 line-height: 0.86rem;
 color: #ffffff;
}
.header-input {
padding-left:0.2rem;
text-align:left;
  flex:1;
  height:0.64rem;
  margin:0.12rem 0 0 0.2rem;
  background:#fff;
  border-radius:0.1rem;
  color:#ccc;
  line-height:0.64rem;
}
.header-left {
  font-size:0.4rem;
  width:0.64rem;
}
.header-right {
  width:1.24rem;
  text-align:center;
  color:#ffffff;
}
.cion1 {
font-size:0.24rem;
margin-right:0.1rem;
}
.cion2 {
margin-left:0.1rem;
}
</style>
